package interview.java.zhangdong.designpattern.observer;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;

public class ConcreteSubject extends Subject {
	
	public void nakedGirlAppear(){
		notifyAllObservers();
	}
	
	public static void main(String[] args){
		ConcreteSubject watchNakedGirl = new ConcreteSubject();
		Watcher1 watcher1 = new Watcher1();
		Watcher2 watcher2 = new Watcher2();
		
		watchNakedGirl.addObserver(watcher1);
		watchNakedGirl.addObserver(watcher2);
		
		watchNakedGirl.nakedGirlAppear();
	}
}
